{php} 
$this->assign('system_loader', 		'system_loader.tpl.html');
$this->assign('system_left_menu', 	'system_left_menu.tpl.html'); 
$this->assign('system_left_help', 	'system_left_help.tpl.html');
$this->assign('system_right_form', 	'system_right_form.tpl.html');
$this->assign('system_footer_info', 'system_footer_info.tpl.html');


$this->assign('system_top_navi', 	'system_top_navi.tpl.html');
//$this->assign('system_top_menu', 	'system_top_menu.tpl.html');


$obj = Bizsystem::GetObject('menu.widget.MainLeftSystemMenu',1);
$left_menu_content = $obj->render();
$this->assign('system_left_menu_content', 	$left_menu_content);

$obj = Bizsystem::GetObject('menu.widget.MainTopMenu',1);
$top_menu_content = $obj->render();
$this->assign('system_top_menu_content', 	$top_menu_content);


$obj = Bizsystem::GetObject('menu.widget.MainTopBreadCrumb',1);
$top_navi_content = $obj->render();
$this->assign('system_top_navi_content', 	$top_navi_content);

$profile = BizSystem::getUserProfile();
$this->assign('profile', $profile);

{/php}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$description}</title>
<link rel="stylesheet" href="{$css_url}/general.css" type="text/css" />
<link rel="stylesheet" href="{$css_url}/system_backend.css" type="text/css" />
<link rel="stylesheet" href="{$css_url}/system_menu_icons.css" type="text/css" />
{$style_sheets}
{$scripts}
<script type="text/javascript" src="{$theme_js_url}/general_ui.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
</head>

<body>
<div align="center" id="body_warp">
	<div id="header_warp">
		<div id="header">
			<div id="header_left"></div>
			<div id="header_right">
				<div id="user_actions">
					<div style="height:10px;"></div>
					<!-- user actions start -->
					<ul>
						<li><a class="icon_myaccount" href="{$app_url}/user/accountEdit" >{t}My Account{/t}</a></li>
						<li><a class="icon_help" href="{$app_url}/pages/help.html" >{t}Help{/t}</a></li>
						<li><a class="icon_logout" href="{$app_url}/user/logout" >{t}Logout{/t}</a></li>												
					</ul>
					<!-- user actions end -->					
				</div>
				<div id="menu">
					<div style="width:140px; height:30px; float:left;"></div>		
					<!-- top menu start -->							
					{$system_top_menu_content}
					<!-- top menu end -->								
				</div>
				
			</div>
		</div>	
		<div id="header_navi">
			<div id="navi">
			{$system_top_navi_content}
			</div>
			<div id="current_user_info">
			{$profile.username} &lt;{$profile.email}&gt;
			</div>			
		</div>
	</div>
	<!--main warp-->
	<div id="main_warp">	
		<!--main-->
		<div id="main" >
			
				{include file=$system_loader}
				<table id="main_content" border="0" cellpadding="0" cellspacing="0">
					<tr><td><img src="{$image_url}/spacer.gif" style="height:15px;" /></td></tr>
					<tr>
						<td valign="top" style="width:18px;"><img src="{$image_url}/spacer.gif" style="width:18px;" /></td>
						<td valign="top" id="left_panel">
							<!-- left menu block start -->
							<div class="content_block">
								<div class="header"></div>
								<div class="content" >								
									{foreach key=formname item=form from=$formsxxxx}	
								    	{if '/^menu\.widget\.MainLeft/si'|preg_match:$formname eq 1}							    								         
								         	{$form}								        
								       {/if}
								    {/foreach}
								    {$system_left_menu_content}
								</div>
								<div class="footer"></div>						
							</div>
							<div class="v_spacer"></div>
							<!-- left menu block end -->														
							<!-- left help block start -->
							<div class="content_block_dark">
								<div class="header">								
								</div>
								<div class="content" >
								{include file=$system_left_help}
								</div>
								<div class="footer"></div>						
							</div>
							<div class="v_spacer"></div>
							<!-- left help block end -->
					
						</td>
						<td valign="top" id="right_panel">
							<!-- right block start -->
							<div class="content_block">
								<div class="header"></div>
								<div class="content">	
									<div>							
									{foreach key=formname item=form from=$forms}	
								    	{if $formname !='help.form.HelpBlockForm' and  
								    		'/^menu\.widget\./si'|preg_match:$formname eq 0}							    
								         <div>
								         	{$form}
								         </div>
								       {/if}
								    {/foreach}	
									</div>
								</div>
								<div class="footer"></div>														
							</div>
							<!-- right block end -->
						</td>
					</tr>
			  </table>		  
			</div>
			<!--main-->
		
		</div>		
		<!--main wrap end-->
		<!--footer-->
		<div  id="footer_warp">			
			<div id="footer">	
				<div style="float:left; width:460px; height:60px;"></div>
				<div style="float:left; width:380px; height:60px;">
				<div style="padding-top:18px;"></div>
				<p>
				{include file=$system_footer_info}
				</p>			
			</div>	
		</div>
		<!-- footer end -->
	
	</div>
</div>

{literal}
<script>
$('main_loader_bg').style.height = $('main_content').offsetHeight+'px';
</script>
{/literal}
</body>
</html>